package top.jacktgq.candychat.mapper;

import top.jacktgq.candychat.pojo.Userinfo;
import top.jacktgq.candychat.pojo.vo.FriendRequestVO;
import top.jacktgq.candychat.pojo.vo.MyFriendVO;
import top.jacktgq.candychat.utils.MyMapper;

import java.util.List;

public interface UserinfoMapperCustom extends MyMapper<Userinfo> {
    List<FriendRequestVO> queryFriendRequestList(String acceptUserId);

    /**
     * 加载通讯录：查询我的所有朋友
     */
    List<MyFriendVO> getMyFriends(String userId);

    /**
     * 批量签收消息
     * @param msgIdList
     */
    void updateMsgSignedBatch(List<String> msgIdList);
}